Skip to content

Pangolins Sprint 12 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Nov 8, 2017
Merged

Pangolins Sprint 12 #11

merged 29 commits into from
Nov 8, 2017

Conversation

tomreece
Copy link
Contributor

@tomreece tomreece commented Nov 6, 2017

Scope

Stories

  • MQE-236 [Generator] Add additional Comment methods
  • MQE-388 Write store settings before tests
  • MQE-395 Throw an exception when a test references an actionGroup that doesn't exist
  • MQE-398 Rename Page.urlPath attribute
  • MQE-433 Create merge step/action-group verification tests
  • MQE-435 Create new jenkins build in test instance to run new framework tests
  • MQE-450 [Framework] Create a custom "clearField()" function for the framework.
  • MQE-465 Data object xml doesn't support multidimensional arrays
  • MQE-521 Remove composer.lock from framework

Bugs

  • MQE-522 Fix substr_count() calls to not pass a negative length
  • MQE-484 ParamterArray with data replacement does not generate uniqueness function correctly
  • MQE-477 Generate tests throws warning when using action groups in merged tests.
  • MQE-456 [Generator] $persisted.data$ references break double quotes unnecessarily
  • MQE-495 Unable to use action group parameters in parameterArray
  • MQE-496 Unable to pass multiple ActionGroup arguments into parameterized selector
  • MQE-506 Entity data cannot represent empty strings
  • MQE-510 Output from robo generate:tests contains --env chrome parameters

Related Pull Requests

KevinBKozan and others added 27 commits October 25, 2017 08:50
- Changed resolveTestVariable to process each arg individually, as opposed to the whole string.
- fixed quote breaking issue.
- consolidated and refactored code around persisted data replacement.
- Adding the "comment" method to the MagentoWebDriver/Test Schema file.
- Adding the "comment" method to the di.xml so it can appear multiple times in a single <test>.
- Adding the "clearField" method to the MagentoWebDriver file.
- Adding the "clearField" method to the Test Schema.
- Adding the "clearField" method to the di.xml so it can be listed multiple times in a test.
    - change output deletion behavior
    - fix codesniffer method
    - add new metadata generator util
    - add new example input file
    - change dir setup util to exposer public recursive delete
…ueness function correctly (#25)

- ParameterArray now correctly replaces "{{data.key}}" uniqueness.
- Verification test creation
- add support for consistent array declaration
- change functionality for pressKey
- add exception for improperly formatted parameter array
- add support for unspecified data values in entities
…rged tests.

- Changed setter of argData[argument] to not error on null arguments.
- Changed Constant to variable. Constant is now merged actionObject Attributes.
…ized selector

- Persisted Data fixes to Anthoula's patch.
- Fixed quote logic, caught via verification tests.
…t doesn't exist

- Throwing testReferenceException if actionGroup returned is null.
…ueness function correctly (#25)

- ParameterArray now correctly replaces "{{data.key}}" uniqueness.
- Verification test creation
- add support for consistent array declaration
- change functionality for pressKey
- add exception for improperly formatted parameter array
…rged tests.

- Changed setter of argData[argument] to not error on null arguments.
- add new verification tests around action-group
- edit action group arg in unit test for failure
- add verification tests around merge of xml
@okolesnyk okolesnyk self-requested a review November 7, 2017 11:45
@okolesnyk okolesnyk self-assigned this Nov 7, 2017
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test files must be named starting from Uppercase. MergeBaseFunctionalCest.xml

<fillField mergeKey="fillField2" selector="{{SampleSection.newElement}}" userInput="{{defaultPerson.newField}}" />
</test>
</cest>
</config>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New line missed

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test files must be names starting from Uppercase. MergeInFunctionalCest.xml

<actionGroup ref="functionalActionGroupWithData" mergeKey="step8Merge" after="step7Merge"/>
</test>
</cest>
</config>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New line missed at the end of file

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action groups must be named starting from Uppercase. FunctionalActionGroup.xml

/**
* Clear the given Text Field or Textarea
*
* @param string $selector
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return state missed

*
* @var Mustache_Engine
*/
private $mustache_engine;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properties must be named using lowerCamelCase naming convention.

*
* @return void
*/
private function initMustacheTemplates()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Init methods should be avoided to simplify extensibility of class.

<operation name="{{operationName}}" dataType="{{operationDataType}}" type="create" auth="adminFormKey" url="{{operationUrl}}" method="POST">
{{>object}}
</operation>
</config>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New line at the end of file missed

{{> object}}
{{/hasChildObj}}
</object>
{{/objects}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New line at the end of file missed

@tomreece
Copy link
Contributor Author

tomreece commented Nov 7, 2017

Changes made in https://fisheye.corp.magento.com/cru/CR-MAGETWO-36183 -- waiting on review. Reviewed and merged.

@okolesnyk okolesnyk merged commit 421a2a2 into magento:develop Nov 8, 2017
mmansoor-magento pushed a commit that referenced this pull request Nov 5, 2020
Master >> develop after 3.2.0 release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants